package com.changgou.web.getaway.service;

import org.springframework.http.server.reactive.ServerHttpRequest;

/**
 *
 */
public interface AuthService {

    /**
     * 到cookie中获取消费者的jti短令牌
     * @param request
     * @return
     */
    public String getJtiFromCookie(ServerHttpRequest request);

    /**
     * 通过jti短令牌到redis中获取长令牌
     * @param jti   短令牌
     * @return
     */
    public String getJwtByJtiFromRedis(String jti);
}
